﻿<%@ Page Title="" Language="C#" MasterPageFile="~/user.Master" AutoEventWireup="true" CodeBehind="check_ticket_user.aspx.cs" Inherits="Bus_proj.website.check_ticket_user" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/Stylebuttoncss.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/textbox.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style3
        {
        }
        .style4
        {
            width: 470px;
        }
        .style5
        {
            height: 30px;
        }
        .style6
        {
            width: 460px;
        }
        .style7
        {
            width: 460px;
            height: 23px;
        }
        .style8
        {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
    </Triggers>
<fieldset class="el03">
<legend>ตรวจสอบตั๋วโดยสาร</legend>
<fieldset class="el02">
<legend>ข้อมูลตั๋วโดยสาร</legend>
    <table class="style1">
        <tr>
            <td align="right" class="style6">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td align="right" class="style6">
                <asp:Label ID="Label1" runat="server" Text="เลขที่ตั๋วโดยสาร :"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="TextBox1" runat="server" Width="150px" CssClass="textbox"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right" class="style6">
                &nbsp;</td>
            <td align="left">
                <asp:Button ID="Button1" runat="server" Height="43px" Text="ค้นหา" 
                    Width="125px" onclick="Button1_Click" CssClass="classname" />
            </td>
        </tr>
        <tr>
            <td align="right" class="style7">
                </td>
            <td class="style8">
                </td>
        </tr>
    </table> 
</fieldset>

    <asp:Panel ID="Panel1" runat="server" Visible="False">
    <fieldset class="el02">
    <legend>ตารางแสดงข้อมูลตั๋ว</legend>
    <table class="style1">
        <tr>
            <td align="center" class="style3">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="style3">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" Font-Size="Medium" ForeColor="Black" GridLines="Vertical" 
                    Width="662px">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="Sale_id" HeaderText="เลขตั๋วโดยสาร" />
                        <asp:BoundField DataField="Around_id" HeaderText="รอบเดินรถ" />
                        <asp:BoundField DataField="Around_date" HeaderText="วันที่เดินทาง" />
                        <asp:BoundField DataField="Route_source" HeaderText="ชื่อต้นทาง" />
                        <asp:BoundField DataField="Route_destination" HeaderText="ชื่อปลายทาง" />
                        <asp:BoundField DataField="Seat_no" HeaderText="ที่นั่ง" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td align="center" class="style5">
                &nbsp;</td>
        </tr>
        <tr>
            <td align="center" class="style3">
                <asp:Label ID="Label2" runat="server" Text="ไม่มีข้อมูลตั๋วในระบบ" 
                    Visible="False" Font-Size="XX-Large"></asp:Label>
            </td>
        </tr>
        </table>
    </fieldset>
    </asp:Panel>    
</fieldset>
    </ContentTemplate>
    </asp:UpdatePanel>

    
</asp:Content>
